<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/> 
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}

function action_form(url) {
    $("#report_form").attr("action", url);
    $("#report_form").submit();
}

</script>
</head>
<body>
<div class="box-positon">
    <form action="" method="post" style="padding-top:5px;" id="report_form">
        <div>
            订单类型: <@p.select name="typeId" value=typeId list=listDic3 headerKey="" listKey="dicCode" listValue="dicName"  headerValue="cmsDictionary.type.allType"/>
            开始时间：<input type="text" name="startTime" value="${startTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
            结束时间：<input type="text" name="endTime" value="${endTime!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>
           <input type="button" value="excel导出" onclick="action_form('to_sale_count_report.do')"/>
           <!--  <input  type="button" value="销售额报表" onclick="action_form('to_sale_money_report.do')"/> -->
            <input type="button" value="查询" onclick="action_form('to_sale_money_report_view.do')"/>
        </div>
    </form>
    <#if pagination??>
        <form action="to_sale_money_dis_view.do" id="tableForm" method="post" id="tableForm">
            <input type="hidden" name="pageNo" value="${pageNo!}"/>
            <@p.table value=pagination;report,i,has_next><#rt/>
                 <@p.column code="姓名">${report.xingming!}</@p.column><#t/>
                 <@p.column code="电话">${report.mobile!}</@p.column><#t/>
                 <@p.column code="地址">${report.address!}</@p.column><#t/>
                 <@p.column code="配送时间">${report.peisongtime!}</@p.column><#t/>
                 <@p.column code="订单编号">${report.ordercode!}</@p.column><#t/>
                 <@p.column code="下单时间">${report.orderdate!}</@p.column><#t/>
                 <@p.column code="菜品信息">${report.productname!}</@p.column><#t/>
                 <@p.column code="是否预约订单">${report.reservationflag!}</@p.column><#t/>
                 <@p.column code="订单支付类型">${report.payway!}</@p.column><#t/>
                 <@p.column code="订单总金额">${report.totalmoney!}</@p.column><#t/>
                  <@p.column code="配送费">${report.peisongfee!}</@p.column><#t/>
                  <@p.column code="是否优惠活动">${report.discountflag!}</@p.column><#t/>
                  <@p.column code="优惠后订单总金额">${report.discountmoney!}</@p.column><#t/>
            </@p.table>
        </form>
    </#if>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>